<?php

use Illuminate\Support\Facades\Route;

use App\Http\Controllers\Home\IndexController;
use App\Http\Controllers\Home\ModuleController;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

/*首页*/
Route::any("/", [IndexController::class,'index']);
Route::post("/visit", [IndexController::class,'visit']);
Route::any("/search", [IndexController::class,'search']);
/*模型页面*/
Route::any("/article/{id?}.html", [ModuleController::class,'details']);//详细页
Route::any("/{module}/{page?}", [ModuleController::class,'index']);//列表页
